package service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

/**
 * Created by fanzhenyu02 on 2020/4/22.
 */
public class MCCProcessToFile {
    public static void main(String[] args) throws Exception {
        File file = new File("/Users/vonmax/Downloads/result_Save.txt");
        String json="[\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000014426090\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094640784\",\n" +
                "        \"wx_merchant_id\": \"1509314401\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015750157\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094640967\",\n" +
                "        \"wx_merchant_id\": \"1511595231\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015746121\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094639882\",\n" +
                "        \"wx_merchant_id\": \"1486737262\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015931166\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094639922\",\n" +
                "        \"wx_merchant_id\": \"1240790602\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000014426090\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094640784\",\n" +
                "        \"wx_merchant_id\": \"1509314401\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015750157\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094640967\",\n" +
                "        \"wx_merchant_id\": \"1511595231\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015746121\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094639882\",\n" +
                "        \"wx_merchant_id\": \"1486737262\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015931166\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094639922\",\n" +
                "        \"wx_merchant_id\": \"1240790602\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000024894272\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202375\",\n" +
                "        \"wx_merchant_id\": \"1548360681\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000024894272\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202375\",\n" +
                "        \"wx_merchant_id\": \"1548360681\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053323315\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202396\",\n" +
                "        \"wx_merchant_id\": \"1540796991\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053323315\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202396\",\n" +
                "        \"wx_merchant_id\": \"1540796991\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000018954351\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202366\",\n" +
                "        \"wx_merchant_id\": \"10075427\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000018954351\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202366\",\n" +
                "        \"wx_merchant_id\": \"10075427\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016590533\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094642764\",\n" +
                "        \"wx_merchant_id\": \"1228472902\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016590533\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094642764\",\n" +
                "        \"wx_merchant_id\": \"1228472902\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017829857\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000098755945\",\n" +
                "        \"wx_merchant_id\": \"1299560801\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017829857\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000098755945\",\n" +
                "        \"wx_merchant_id\": \"1299560801\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000014422023\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202297\",\n" +
                "        \"wx_merchant_id\": \"1252811001\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000014422023\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202297\",\n" +
                "        \"wx_merchant_id\": \"1252811001\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017255048\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202356\",\n" +
                "        \"wx_merchant_id\": \"1429234802\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017255048\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202356\",\n" +
                "        \"wx_merchant_id\": \"1429234802\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015930618\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202349\",\n" +
                "        \"wx_merchant_id\": \"1530641711\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015930618\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202349\",\n" +
                "        \"wx_merchant_id\": \"1530641711\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053323349\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202335\",\n" +
                "        \"wx_merchant_id\": \"1510576621\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053323349\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202335\",\n" +
                "        \"wx_merchant_id\": \"1510576621\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000024613868\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202383\",\n" +
                "        \"wx_merchant_id\": \"1401694002\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000024613868\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202383\",\n" +
                "        \"wx_merchant_id\": \"1401694002\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000035035430\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202393\",\n" +
                "        \"wx_merchant_id\": \"1249216901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000035035430\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202393\",\n" +
                "        \"wx_merchant_id\": \"1249216901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020106656\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202374\",\n" +
                "        \"wx_merchant_id\": \"1535608261\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020106656\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202374\",\n" +
                "        \"wx_merchant_id\": \"1535608261\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017257373\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202363\",\n" +
                "        \"wx_merchant_id\": \"1535415341\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017257373\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202363\",\n" +
                "        \"wx_merchant_id\": \"1535415341\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000018941619\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202364\",\n" +
                "        \"wx_merchant_id\": \"1411836002\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000018941619\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202364\",\n" +
                "        \"wx_merchant_id\": \"1411836002\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000035030738\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202389\",\n" +
                "        \"wx_merchant_id\": \"1275881301\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000035030738\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202389\",\n" +
                "        \"wx_merchant_id\": \"1275881301\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053322655\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202394\",\n" +
                "        \"wx_merchant_id\": \"1316295501\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053322655\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202394\",\n" +
                "        \"wx_merchant_id\": \"1316295501\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053324147\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202397\",\n" +
                "        \"wx_merchant_id\": \"1442214702\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000053324147\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202397\",\n" +
                "        \"wx_merchant_id\": \"1442214702\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000019540223\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202367\",\n" +
                "        \"wx_merchant_id\": \"1259943701\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000019540223\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202367\",\n" +
                "        \"wx_merchant_id\": \"1259943701\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015914029\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202346\",\n" +
                "        \"wx_merchant_id\": \"1500945761\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015914029\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202346\",\n" +
                "        \"wx_merchant_id\": \"1500945761\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015910383\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202347\",\n" +
                "        \"wx_merchant_id\": \"1519551061\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015910383\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202347\",\n" +
                "        \"wx_merchant_id\": \"1519551061\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015750489\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202310\",\n" +
                "        \"wx_merchant_id\": \"1378030302\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015750489\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202310\",\n" +
                "        \"wx_merchant_id\": \"1378030302\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015751300\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202314\",\n" +
                "        \"wx_merchant_id\": \"1429329902\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000015751300\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202314\",\n" +
                "        \"wx_merchant_id\": \"1429329902\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000014424876\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202316\",\n" +
                "        \"wx_merchant_id\": \"1508805021\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000014424876\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202316\",\n" +
                "        \"wx_merchant_id\": \"1508805021\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016247905\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202350\",\n" +
                "        \"wx_merchant_id\": \"1299830701\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016247905\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202350\",\n" +
                "        \"wx_merchant_id\": \"1299830701\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016250780\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202351\",\n" +
                "        \"wx_merchant_id\": \"1270380901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016250780\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202351\",\n" +
                "        \"wx_merchant_id\": \"1270380901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016248873\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202353\",\n" +
                "        \"wx_merchant_id\": \"1230879202\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016248873\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202353\",\n" +
                "        \"wx_merchant_id\": \"1230879202\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016590535\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202355\",\n" +
                "        \"wx_merchant_id\": \"1512359741\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016590535\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202355\",\n" +
                "        \"wx_merchant_id\": \"1512359741\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017181962\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202358\",\n" +
                "        \"wx_merchant_id\": \"1284713701\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017181962\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202358\",\n" +
                "        \"wx_merchant_id\": \"1284713701\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016587651\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202359\",\n" +
                "        \"wx_merchant_id\": \"1299840901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000016587651\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202359\",\n" +
                "        \"wx_merchant_id\": \"1299840901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017190071\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202360\",\n" +
                "        \"wx_merchant_id\": \"1227548002\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017190071\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202360\",\n" +
                "        \"wx_merchant_id\": \"1227548002\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017249600\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202361\",\n" +
                "        \"wx_merchant_id\": \"1509965341\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017249600\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202361\",\n" +
                "        \"wx_merchant_id\": \"1509965341\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017190078\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202362\",\n" +
                "        \"wx_merchant_id\": \"1359022502\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000017190078\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202362\",\n" +
                "        \"wx_merchant_id\": \"1359022502\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020111657\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202365\",\n" +
                "        \"wx_merchant_id\": \"1345731201\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020111657\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202365\",\n" +
                "        \"wx_merchant_id\": \"1345731201\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020107742\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202368\",\n" +
                "        \"wx_merchant_id\": \"1519176721\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020107742\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202368\",\n" +
                "        \"wx_merchant_id\": \"1519176721\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000019539690\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202369\",\n" +
                "        \"wx_merchant_id\": \"1305634201\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000019539690\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202369\",\n" +
                "        \"wx_merchant_id\": \"1305634201\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000019532399\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202373\",\n" +
                "        \"wx_merchant_id\": \"1519782871\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000019532399\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202373\",\n" +
                "        \"wx_merchant_id\": \"1519782871\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020106617\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202376\",\n" +
                "        \"wx_merchant_id\": \"1507398901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000020106617\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202376\",\n" +
                "        \"wx_merchant_id\": \"1507398901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000024900041\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202385\",\n" +
                "        \"wx_merchant_id\": \"1505740901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000024900041\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202385\",\n" +
                "        \"wx_merchant_id\": \"1505740901\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"26\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000035032856\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202392\",\n" +
                "        \"wx_merchant_id\": \"1439557702\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"pay_type\": \"36\",\n" +
                "        \"pay_mode\": \"common\",\n" +
                "        \"app_name\": \"11000023357629\",\n" +
                "        \"old_biz_merch_no\": \"11000035032856\",\n" +
                "        \"biz_merch_no\": \"11000023357629\",\n" +
                "        \"biz_sub_merch_no\": \"12000094202392\",\n" +
                "        \"wx_merchant_id\": \"1439557702\"\n" +
                "    }\n" +
                "]";

        JSONArray array=JSONObject.parseArray(json);
        String content="";
        for (Object ob:array){
            JSONObject jso=(JSONObject)ob;
            jso.remove("old_biz_merch_no");
            jso.remove("pay_mode");
        }


        BufferedWriter out = null;
        out = new BufferedWriter(new OutputStreamWriter(
                new FileOutputStream(file, false)));
        out.write(array.toString());
        out.flush();
        out.close();
    }


}
